﻿import os

path = 'E:/temp/'
files = os.listdir(path)

for file in files:
    new_name = file[0:-10] + file[-4:]
    # print(new_name)
    os.rename(path + file, path + new_name)
